ExamPlay Light Logo
Είσοδος

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 11 - No. 2)

What is the purpose of the outermost `FOR` loop in the bubble sort example (i.e., `FOR Index <- 1 TO Length - 1`)?
To initialize the array to be sorted.
To control the number of passes through the list.
To define the inner loop.
To set the values for the comparison.

Εξήγηση

The outer loop determines how many passes are needed to sort the entire list.

Σχόλια (0)

Είσοδος για σχόλιο
Διαφήμιση
BrainBehindX Inc Logo
©2026; Τροφοδοτείται από BrainBehindX Inc